#ifndef COLLECTD_5_12_0_COMMTRAFF_SOCKET_SERVER_H
#define COLLECTD_5_12_0_COMMTRAFF_SOCKET_SERVER_H

#include <stdint.h>

typedef struct {
    void (*OnRecv)(char *buffer, int length);
} SocketServerCb;


int32_t SocketServerInit(SocketServerCb *cb);
int32_t SocketServerDeinit();
int32_t SendDataToClient(int32_t clientPort, uint8_t *buffer, int32_t length);

#endif //COLLECTD_5_12_0_COMMTRAFF_SOCKET_SERVER_H